Hide specified message types sent by lurkers
authorJosh Feinstein <jlf@foxtail.org>
Mon, 20 Aug 2012 16:08:51 +0000 (09:08 -0700)
committerJosh Feinstein <jlf@foxtail.org>
Mon, 20 Aug 2012 16:08:51 +0000 (09:08 -0700)
commit12e27a9b35dbbffcadb1473bc50300b3986995eb
tree4a99f2b14e777e8e4647aaa52432977e87874823
parent3fca479482475befcdb08beba32faf7f2b81d964
Hide specified message types sent by lurkers

* erc.el (erc-display-message): Abstract message hiding decision
to new function erc-hide-current-message-p.
(erc-lurker): New customization group.
(erc-lurker-state, erc-lurker-trim-nicks, erc-lurker-ignore-chars)
(erc-lurker-hide-list, erc-lurker-cleanup-interval)
(erc-lurker-threshold-time): New variables.
(erc-lurker-maybe-trim, erc-lurker-initialize, erc-lurker-cleanup)
(erc-hide-current-message-p, erc-canonicalize-server-name)
(erc-lurker-update-status, erc-lurker-p): New functions.  Together
they maintain state about which users have spoken in the last
erc-lurker-threshold-time, with all other users being considered
lurkers whose messages of types in erc-lurker-hide-list will not
be displayed by erc-display-message.
lisp/erc/ChangeLog
lisp/erc/erc.el